<%--
    Document   : header
    Created on : 8 avr. 2011, 23:34:56
    Author     : Delphine
--%>

<%@tag description="put the tag description here" pageEncoding="UTF-8"%>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@attribute name="message"%>

<%-- any content can be specified here e.g.: --%>

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="./css/jsgantt.css" />
        <link rel="stylesheet" type="text/css" href="./css/miagestyle.css" />
        <link rel="stylesheet" type="text/css" href="./css/menu1.css"/>
        <script language="javascript" src="./javascripts/jsgantt.js"></script>

        <title>Projy - la gestion de projet au quotidien</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    </head>
    <<body onload="document.formulaire.submit();"> >
        <div id="page">
            <div id="haut">
                <div id="title">Projy : la gestion de projet au quotidien</div>
                <div id="clear"></div>
            </div>
            <ul id="menu">
              <li><a href="gantt.jsp">Projets</a></li>
              <li><a href="recherche.jsp">Rechercher</a></li>
              <li><a href="profil.jsp">Mon profil</a></li>
              <li><a href="MainServlet?type=deconnexion">Se deconnecter</a></li>
            </ul>
                        <%
                            if((session.getAttribute("id_user") == null) &&(session.getAttribute("type_user") == null)) {
                                RequestDispatcher rd = request.getRequestDispatcher("authentification.jsp");
                                rd.forward(request, response);
                            }
                            else {
                                if((session.getAttribute("id_user") != null) ||(session.getAttribute("type_user") != null)) {
                                    RequestDispatcher rd = request.getRequestDispatcher("gantt.jsp");
                                    rd.forward(request, response);
                                }
                            }
                        %>
